import QtQuick 2.2
import QtQuick.Controls 1.1
import "../FKWidget/"

FKWidget {
    id: exitOnly

    relativeHeight: 0.6
    relativeWidth: 0.6
    hideAnimation: true

    signal ok
//    onOk: parent.ok()

    property string message: "Hello!"

    onHidden: ok()

    FKViewport{
        Text {
            id: msg
            text: exitOnly.message
            anchors.left: parent.left
            anchors.right: parent.right
            anchors.top: parent.top
            height: parent.height*0.7
            verticalAlignment: Text.AlignVCenter
            horizontalAlignment: Text.AlignHCenter
        }
        Item{
            anchors.left: parent.left
            anchors.right: parent.right
            anchors.bottom: parent.bottom
            height: parent.height*0.4
            Button {
                anchors.centerIn: parent
                width: parent.width*0.9
                text: "OK"
                onClicked:{
                    exitOnly.hide()
                }
            }
        }
    }
}
